@import '~@/px2vw.less';

.uploadAvatarWrapper {
    width: 150px;
    height: 200px;
    background: #f6f7f8;
    border-radius: .px2vw(8) [ @vw];
    border: 1px solid #e8eaef;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #49536c;
    flex-direction: column;
    cursor: pointer;
    padding-top: .px2vw(15) [ @vw];
    margin: 0 auto;

    .avatar {
        width: .px2vw(102) [ @vw];
        height: .px2vw(136) [ @vw];
        background: #fff;
        border-radius: .px2vw(8) [ @vw];
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        overflow: hidden;
        cursor: pointer;
    }

    .uploadedAvatar {
        width: 100%;
        height: 100%;
        justify-content: center;
        align-items: center;
        display: flex;
        font-size: .px2vw(20) [ @vw];
        color: white;

        i {
            margin: .px2vw(5) [ @vw];
            display: none;
        }

        &:hover {
            background-color: rgba(0, 0, 0, 0.3);

            i {
                display: block;
            }
        }
    }


}

.upload {
    text-align: center;

    :global {
        .ant-upload.ant-upload-select-picture-card>.ant-upload {
            margin: 0 auto;
        }
    }
}

.uploadButton {
    display: flex;
    align-items: center;
    font-size: .px2vw(14) [ @vw];
    font-weight: 400;
    line-height: .px2vw(22) [ @vw];
    justify-content: center;
    padding-top: .px2vw(10) [ @vw];
    color: #FFA22D;
}

.avatar {
    background-color: #fff;
    padding: .px2vw(5) [ @vw] 0;
    width: .px2vw(90) [ @vw];
    height: .px2vw(90) [ @vw];
    border-radius: .px2vw(5) [ @vw];
    margin: 0 auto;
}
